// Modern Design System Variables

// Primary Colors
$primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
$primary-color: #6366f1;
$secondary-color: #8b5cf6;
$accent-color: #f59e0b;

// Neutral Colors
$text-primary: #1f2937;
$text-secondary: #4b5563;
$text-muted: #9ca3af;
$background-light: #ffffff;
$background-gray: #f3f4f6;
$border-light: #e5e7eb;

// Shadows
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
$shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
$shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

// Border Radius
$radius-sm: 0.375rem;
$radius-md: 0.5rem;
$radius-lg: 0.75rem;
$radius-full: 9999px;

// Spacing
$spacing-1: 0.25rem;
$spacing-2: 0.5rem;
$spacing-3: 0.75rem;
$spacing-4: 1rem;
$spacing-6: 1.5rem;
$spacing-8: 2rem;

// Typography
$font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
$font-size-xs: 0.75rem;
$font-size-sm: 0.875rem;
$font-size-base: 1rem;
$font-size-lg: 1.125rem;
$font-size-xl: 1.25rem;
$font-size-2xl: 1.5rem;

// Modern Component Styles
.card {
  background: $background-light;
  border-radius: $radius-md;
  box-shadow: $shadow-sm;
  padding: $spacing-4;
  transition: all 0.2s ease;
  
  &:hover {
    box-shadow: $shadow-md;
    transform: translateY(-2px);
  }
}

.button {
  padding: $spacing-2 $spacing-4;
  border-radius: $radius-md;
  font-weight: 500;
  transition: all 0.2s ease;
  
  &-primary {
    background: $primary-gradient;
    color: white;
    
    &:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }
  }
  
  &-secondary {
    background: $background-gray;
    color: $text-primary;
    
    &:hover {
      background: darken($background-gray, 5%);
    }
  }
}

.input {
  width: 100%;
  padding: $spacing-2 $spacing-3;
  border: 1px solid $border-light;
  border-radius: $radius-md;
  background: $background-light;
  transition: all 0.2s ease;
  
  &:focus {
    border-color: $primary-color;
    box-shadow: 0 0 0 2px rgba($primary-color, 0.1);
    outline: none;
  }
}

// Modern Layout Utilities
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 $spacing-4;
}

.flex {
  display: flex;
  
  &-center {
    align-items: center;
    justify-content: center;
  }
  
  &-between {
    justify-content: space-between;
  }
}

// Animation Utilities
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

// Modern Text Utilities
.text {
  &-h1 {
    font-size: $font-size-2xl;
    font-weight: 700;
    line-height: 1.2;
  }
  
  &-h2 {
    font-size: $font-size-xl;
    font-weight: 600;
    line-height: 1.3;
  }
  
  &-body {
    font-size: $font-size-base;
    line-height: 1.5;
    color: $text-secondary;
  }
}

// Global Styles
body {
  font-family: $font-sans;
  color: $text-primary;
  background: $background-gray;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// Status Bar Styling
.status-bar {
  background: $primary-gradient;
  padding-top: var(--status-bar-height);
}

// Navigation Bar
.nav-bar {
  background: $background-light;
  box-shadow: $shadow-sm;
  padding: $spacing-3 $spacing-4;
}

// List Items
.list-item {
  padding: $spacing-3 $spacing-4;
  border-bottom: 1px solid $border-light;
  background: $background-light;
  transition: background 0.2s ease;
  
  &:hover {
    background: $background-gray;
  }
  
  &:last-child {
    border-bottom: none;
  }
}

.text-center {
	text-align: center;
}

.font-13 {
	font-size: 13px;
}

.font-12 {
	font-size: 12px;
}

.font-11 {
	font-size: 11px;
}

.text-grey1 {
	color: #888;
}
.text-grey2 {
	color: #aaa;
}

.list-cell-arrow::before {
    content: ' ';
    height: 10px;
    width: 10px;
    border-width: 2px 2px 0 0;
    border-color: #c0c0c0;
    border-style: solid;
    -webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
    transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
    position: absolute;
    top: 50%;
    margin-top: -6px;
    right: 30rpx;
  }
  
  .list-cell {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    padding: 26rpx 30rpx;
  }
  
  .list-cell:first-child {
    border-radius: 8rpx 8rpx 0 0;
  }
  
  .list-cell:last-child {
    border-radius: 0 0 8rpx 8rpx;
  }
  
  .list-cell::after {
    content: '';
    position: absolute;
    border-bottom: 1px solid #eaeef1;
    -webkit-transform: scaleY(0.5) translateZ(0);
    transform: scaleY(0.5) translateZ(0);
    transform-origin: 0 100%;
    bottom: 0;
    right: 0;
    left: 0;
    pointer-events: none;
  }
  
  
  .menu-list {
    margin: 15px 15px;
  
    .menu-item-box {
      width: 100%;
      display: flex;
      align-items: center;
  
      .menu-icon {
        color: #007AFF;
        font-size: 16px;
        margin-right: 5px;
      }
      
      .text-right {
        margin-left: auto;
        margin-right: 34rpx;
        color: #999;
      }
    }
  }
